package com.example.demo.controller;

import com.example.demo.entity.TUser;
import com.example.demo.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname TUserController
 * @Description TODO
 * @Date 2019/11/1 15:41
 * @Created by yby
 */
@RestController
@RequestMapping("/tuser")
public class TUserController {

    @Autowired
    private TUserService tUserService;

    @RequestMapping("/insert")
    public void insertData() {
        System.out.println("ffffffafafa");
        TUser tUser = new TUser();
        tUser.setPhone("123");
        tUserService.addData(tUser);
    }

}
